From: Florian Müllner Date: Tue, 13 Jun 2017 03:51:31 +0000 (+0200) Subject: windowManager: Fix a warning X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~263 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=32fdc22811299720ace16b5b3c06e21b06fad69b;p=gnome-shell.git windowManager: Fix a warning The destroy effect currently relies on a monkey-patched property added from the map effect. However on X11 it is possible that we did no map animation for a window that is destroyed when the shell was restarted or had taken over from another WM. Just use the real MetaWindow property to avoid a warning in that case. https://bugzilla.gnome.org/show_bug.cgi?id=781471 --- diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index a89c726b4..f97ed76d7 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -1604,7 +1604,7 @@ const WindowManager = new Lang.Class({ return; } - switch (actor._windowType) { + switch (actor.meta_window.window_type) { case Meta.WindowType.NORMAL: actor.set_pivot_point(0.5, 0.5); this._destroying.push(actor);